package com.ncsc.erp.model;
// Generated 20 มิ.ย. 2557, 12:55:43 by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * FaGlTrans generated by hbm2java
 */
@Entity
@Table(name="fa_gl_trans"
    ,catalog="ncsc_erp"
)
public class FaGlTrans  implements java.io.Serializable {


     private long glNo;
     private FaAccountCategory faAccountCategory;
     private HrEmp hrEmp;
     private FaJournal faJournal;
     private FaChartOfAccount faChartOfAccount;
     private Date glDtm;
     private String glDescr;
     private BigDecimal glDrAmt;
     private BigDecimal glCrAmt;
     private short glStatusDrCr;
     private short glStatusIsClose;
     private Date glCreatedDtm;

    public FaGlTrans() {
    }

	
    public FaGlTrans(long glNo, BigDecimal glDrAmt, BigDecimal glCrAmt, short glStatusDrCr, short glStatusIsClose) {
        this.glNo = glNo;
        this.glDrAmt = glDrAmt;
        this.glCrAmt = glCrAmt;
        this.glStatusDrCr = glStatusDrCr;
        this.glStatusIsClose = glStatusIsClose;
    }
    public FaGlTrans(long glNo, FaAccountCategory faAccountCategory, HrEmp hrEmp, FaJournal faJournal, FaChartOfAccount faChartOfAccount, Date glDtm, String glDescr, BigDecimal glDrAmt, BigDecimal glCrAmt, short glStatusDrCr, short glStatusIsClose, Date glCreatedDtm) {
       this.glNo = glNo;
       this.faAccountCategory = faAccountCategory;
       this.hrEmp = hrEmp;
       this.faJournal = faJournal;
       this.faChartOfAccount = faChartOfAccount;
       this.glDtm = glDtm;
       this.glDescr = glDescr;
       this.glDrAmt = glDrAmt;
       this.glCrAmt = glCrAmt;
       this.glStatusDrCr = glStatusDrCr;
       this.glStatusIsClose = glStatusIsClose;
       this.glCreatedDtm = glCreatedDtm;
    }
   
     @Id 

    
    @Column(name="GL_NO", unique=true, nullable=false)
    public long getGlNo() {
        return this.glNo;
    }
    
    public void setGlNo(long glNo) {
        this.glNo = glNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="GL_ACC_CAT_NO")
    public FaAccountCategory getFaAccountCategory() {
        return this.faAccountCategory;
    }
    
    public void setFaAccountCategory(FaAccountCategory faAccountCategory) {
        this.faAccountCategory = faAccountCategory;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="GL_CREATED_BY_EMP_NO")
    public HrEmp getHrEmp() {
        return this.hrEmp;
    }
    
    public void setHrEmp(HrEmp hrEmp) {
        this.hrEmp = hrEmp;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="GL_JN_NO")
    public FaJournal getFaJournal() {
        return this.faJournal;
    }
    
    public void setFaJournal(FaJournal faJournal) {
        this.faJournal = faJournal;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="GL_ACC_NO")
    public FaChartOfAccount getFaChartOfAccount() {
        return this.faChartOfAccount;
    }
    
    public void setFaChartOfAccount(FaChartOfAccount faChartOfAccount) {
        this.faChartOfAccount = faChartOfAccount;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="GL_DTM", length=19)
    public Date getGlDtm() {
        return this.glDtm;
    }
    
    public void setGlDtm(Date glDtm) {
        this.glDtm = glDtm;
    }

    
    @Column(name="GL_DESCR", length=300)
    public String getGlDescr() {
        return this.glDescr;
    }
    
    public void setGlDescr(String glDescr) {
        this.glDescr = glDescr;
    }

    
    @Column(name="GL_DR_AMT", nullable=false, precision=15)
    public BigDecimal getGlDrAmt() {
        return this.glDrAmt;
    }
    
    public void setGlDrAmt(BigDecimal glDrAmt) {
        this.glDrAmt = glDrAmt;
    }

    
    @Column(name="GL_CR_AMT", nullable=false, precision=15)
    public BigDecimal getGlCrAmt() {
        return this.glCrAmt;
    }
    
    public void setGlCrAmt(BigDecimal glCrAmt) {
        this.glCrAmt = glCrAmt;
    }

    
    @Column(name="GL_STATUS_DR_CR", nullable=false)
    public short getGlStatusDrCr() {
        return this.glStatusDrCr;
    }
    
    public void setGlStatusDrCr(short glStatusDrCr) {
        this.glStatusDrCr = glStatusDrCr;
    }

    
    @Column(name="GL_STATUS_IS_CLOSE", nullable=false)
    public short getGlStatusIsClose() {
        return this.glStatusIsClose;
    }
    
    public void setGlStatusIsClose(short glStatusIsClose) {
        this.glStatusIsClose = glStatusIsClose;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="GL_CREATED_DTM", length=19)
    public Date getGlCreatedDtm() {
        return this.glCreatedDtm;
    }
    
    public void setGlCreatedDtm(Date glCreatedDtm) {
        this.glCreatedDtm = glCreatedDtm;
    }




}


